//
//  GuestCollectionCell.m
//  MyProject
//
//  Created by dllo on 15/11/3.
//  Copyright (c) 2015年 蓝鸥0825. All rights reserved.
//

#import "GuestCollectionCell.h"

#define  WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height

@implementation GuestCollectionCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    return self;
}


- (void)create{
    
    self.image  = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    [self addSubview:self.image];
    [self.image release];
    
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, HEIGHT / 100 * 80, WIDTH, HEIGHT / 100 * 20)];
    [self addSubview:self.label];
    self.label.textColor = [UIColor whiteColor];
    self.label.font = [UIFont systemFontOfSize:18 weight:20];
    self.label.textAlignment = 1;
    
}
@end
